package org.thukari.entity;

import lombok.Getter;
import lombok.Setter;

import java.util.HashMap;
import java.util.Map;

@Getter
@Setter
public class CountData {
    private String name;
    private int fiber;
    private int other;
    private int stock;
    private Map<String,CountData> dataMap;

    public CountData(String name,int fiber,int other,int stock){
        this.name = name;
        this.fiber = fiber;
        this.other = other;
        this.stock = stock;
        this.dataMap = new HashMap<>();
    }

    public void fiberUp(){
        this.fiber ++;
    }

    public void otherUp(){
        this.other ++;
    }

    public void stockUp(){
        this.stock ++;
    }
}
